import './assets/main.css'
import 'normalize.css'

import { createApp } from 'vue'
import App from './App.vue'

import router from './router'

//引入Vuex
import store from './store'

//引入 Element Plus 图标集
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//引入i18n
import i18n from './i18n'

//引入mock并执行
import './mock'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key,component)
}

//挂载路由
app.use(router)

//挂载Vuex
app.use(store)

//挂载i18n
app.use(i18n)

app.mount('#app')
